// 抽象类
export {}


abstract class Animal {
  eat(food: string): void {
    console.log(`狼吐虎咽的吃饭: ${food}`)
  }

  abstract run (distance: number): void
}

class Dog extends Animal{
  run(distance: number) {

  }
}
const dog = new Dog()
dog.eat("范德萨发违法")
dog.run(1231)